package com.windea.study.kotlin.game.tankwar1.business

import com.windea.study.kotlin.game.tankwar1.model.*


/**
 * 具备攻击的能力
 */
interface Attackable : View {
	
	/**
	 * 所有者
	 */
	val owner: View
	
	/**
	 * 攻击力
	 */
	val attackPower: Int
	
	//判断是否碰撞
	fun isCollision(sufferable: Sufferable): Boolean
	
	fun notifyAttack(sufferable: Sufferable)
}
